home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / iosfwd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  10.3 KB  |  197 lines

  1. #ifndef __STD_IOSFWD__
  2. #define __STD_IOSFWD__
  3. #pragma option push -b -a4 -Vx- -Ve- -w-inl -w-aus -w-sig
  4.  
  5. /***************************************************************************
  6.  *
  7.  * iosfwd - forward declarations for the iostreams
  8.  *
  9.  * $Id: iosfwd,v 1.30 1996/09/24 19:01:15 smithey Exp $
  10.  *
  11.  ***************************************************************************
  12.  *
  13.  * (c) Copyright 1994, 1995 Rogue Wave Software, Inc.
  14.  * ALL RIGHTS RESERVED *
  15.  * The software and information contained herein are proprietary to, and
  16.  * comprise valuable trade secrets of, Rogue Wave Software, Inc., which
  17.  * intends to preserve as trade secrets such software and information.
  18.  * This software is furnished pursuant to a written license agreement and
  19.  * may be used, copied, transmitted, and stored only in accordance with
  20.  * the terms of such license and with the inclusion of the above copyright
  21.  * notice.  This software and information or any other copies thereof may
  22.  * not be provided or otherwise made available to any other person.
  23.  *
  24.  * Notwithstanding any other lease or license that may pertain to, or
  25.  * accompany the delivery of, this computer software and information, the
  26.  * rights of the Government regarding its use, reproduction and disclosure
  27.  * are as set forth in Section 52.227-19 of the FARS Computer
  28.  * Software-Restricted Rights clause.
  29.  * 
  30.  * Use, duplication, or disclosure by the Government is subject to
  31.  * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
  32.  * Technical Data and Computer Software clause at DFARS 252.227-7013.
  33.  * Contractor/Manufacturer is Rogue Wave Software, Inc.,
  34.  * P.O. Box 2328, Corvallis, Oregon 97339.
  35.  *
  36.  * This computer software and information is distributed with "restricted
  37.  * rights."  Use, duplication or disclosure is subject to restrictions as
  38.  * set forth in NASA FAR SUP 18-52.227-79 (April 1985) "Commercial
  39.  * Computer Software-Restricted Rights (April 1985)."  If the Clause at
  40.  * 18-52.227-74 "Rights in Data General" is specified in the contract,
  41.  * then the "Alternate III" clause applies.
  42.  *
  43.  **************************************************************************/
  44.  
  45. #include <stdcomp.h>
  46. #include <rw/stdmutex.h>
  47. #ifndef _RWSTD_NO_WCHAR_H
  48. #include <wchar.h>
  49. #endif
  50.  
  51. #ifndef _RWSTD_NO_NAMESPACE
  52. namespace std {
  53. #endif
  54.  
  55. template<class charT> struct _RWSTDExportTemplate char_traits;
  56.  
  57. template <class T> class _RWSTDExportTemplate allocator;
  58.  
  59. template <class stateT> class _RWSTDExportTemplate fpos;
  60.  
  61. #ifdef _RWSTD_NO_MBSTATE_T
  62. class _RWSTDExportTemplate mbstate_t;
  63. #endif
  64.  
  65. typedef fpos<mbstate_t> streampos;
  66. typedef fpos<mbstate_t> wstreampos;
  67.  
  68. typedef long streamoff;
  69. typedef long wstreamoff;
  70.  
  71. #ifndef _RWSTD_NO_NAMESPACE
  72. }
  73. #endif
  74.  
  75. #include <rw/traits>
  76.  
  77. #ifndef _RWSTD_NO_NAMESPACE
  78. namespace std {
  79. #endif 
  80.  
  81. #ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  82. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ios;
  83. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_streambuf;
  84. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_istream;
  85. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ostream;
  86. template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> > 
  87. class _RWSTDExportTemplate basic_stringbuf;
  88. template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  89. class _RWSTDExportTemplate basic_istringstream;
  90. template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>  > 
  91. class _RWSTDExportTemplate basic_ostringstream;
  92. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_filebuf;
  93. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ifstream;
  94. template<class charT, class traits = char_traits<charT> > class _RWSTDExportTemplate basic_ofstream;
  95. template<class T, class charT, class traits=char_traits<charT> > 
  96.   class _RWSTDExportTemplate ostream_iterator;
  97. template<class T, class charT, class traits=char_traits<charT>,
  98.          class Distance = ptrdiff_t > 
  99.   class _RWSTDExportTemplate istream_iterator;
  100. template<class charT, class traits=char_traits<charT> > 
  101.   class _RWSTDExportTemplate ostreambuf_iterator;
  102. template<class charT, class traits=char_traits<charT> > 
  103.   class _RWSTDExportTemplate istreambuf_iterator;
  104. template<class charT, class traits= char_traits<charT> > class
  105. _RWSTDExportTemplate basic_iostream;
  106. template<class charT, class traits= char_traits<charT> > class
  107. _RWSTDExportTemplate basic_fstream;
  108. template<class charT, class traits= char_traits<charT>, class Allocator = allocator<charT>  > 
  109. class _RWSTDExportTemplate basic_stringstream;
  110. #else
  111. template<class charT, class traits > class _RWSTDExportTemplate basic_ios;
  112. template<class charT, class traits > class _RWSTDExportTemplate basic_streambuf;
  113. template<class charT, class traits > class _RWSTDExportTemplate basic_istream;
  114. template<class charT, class traits > class _RWSTDExportTemplate basic_ostream;
  115. template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringbuf;
  116. template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_istringstream;
  117. template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_ostringstream;
  118. template<class charT, class traits > class _RWSTDExportTemplate basic_filebuf;
  119. template<class charT, class traits > class _RWSTDExportTemplate basic_ifstream;
  120. template<class charT, class traits > class _RWSTDExportTemplate basic_ofstream;
  121. template<class T, class charT, class traits > class _RWSTDExportTemplate ostream_iterator;
  122. template<class T, class charT, class traits, class Distance > class _RWSTDExportTemplate istream_iterator;
  123. template<class charT, class traits > class _RWSTDExportTemplate ostreambuf_iterator;
  124. template<class charT, class traits > class _RWSTDExportTemplate istreambuf_iterator;
  125. template<class charT, class traits > class _RWSTDExportTemplate basic_iostream;
  126. template<class charT, class traits > class _RWSTDExportTemplate basic_fstream;
  127. template<class charT, class traits, class Allocator > class _RWSTDExportTemplate basic_stringstream;
  128. #endif
  129.  
  130. #ifndef _RWSTD_NO_COMPLEX_DEFAULT_TEMPLATES
  131. typedef basic_ios<char>                                    ios;
  132. typedef basic_streambuf<char>                              streambuf;
  133. typedef basic_istream<char>                                istream;
  134. typedef basic_ostream<char>                                ostream;
  135. typedef basic_stringbuf<char>                              stringbuf;
  136. typedef basic_istringstream<char>                          istringstream;
  137. typedef basic_ostringstream<char>                          ostringstream;
  138. typedef basic_filebuf<char>                                filebuf;
  139. typedef basic_ifstream<char>                               ifstream;
  140. typedef basic_ofstream<char>                               ofstream;
  141. typedef basic_fstream<char>                                fstream;
  142. typedef basic_iostream<char>                               iostream;
  143. typedef basic_stringstream<char>                           stringstream;
  144. #ifndef _RWSTD_NO_WIDE_CHAR
  145. typedef basic_ios<wchar_t>                                 wios;
  146. typedef basic_streambuf<wchar_t>                           wstreambuf;
  147. typedef basic_istream<wchar_t>                             wistream;
  148. typedef basic_ostream<wchar_t>                             wostream;
  149. typedef basic_stringbuf<wchar_t>                           wstringbuf;
  150. typedef basic_istringstream<wchar_t>                       wistringstream;
  151. typedef basic_ostringstream<wchar_t>                       wostringstream;
  152. typedef basic_filebuf<wchar_t>                             wfilebuf;
  153. typedef basic_ifstream<wchar_t>                            wifstream;
  154. typedef basic_ofstream<wchar_t>                            wofstream;
  155. typedef basic_fstream<wchar_t>                             wfstream;
  156. typedef basic_iostream<wchar_t>                            wiostream;
  157. typedef basic_stringstream<wchar_t>                        wstringstream;
  158. #endif
  159. #else
  160. typedef basic_ios<char, char_traits<char> >                 ios;
  161. typedef basic_streambuf<char, char_traits<char> >           streambuf;
  162. typedef basic_istream<char, char_traits<char> >             istream;
  163. typedef basic_ostream<char, char_traits<char> >             ostream;
  164. typedef basic_stringbuf<char, char_traits<char>, allocator<char> >           stringbuf;
  165. typedef basic_istringstream<char, char_traits<char>, allocator<char> >       istringstream;
  166. typedef basic_ostringstream<char, char_traits<char>, allocator<char> >       ostringstream;
  167. typedef basic_filebuf<char, char_traits<char> >             filebuf;
  168. typedef basic_ifstream<char, char_traits<char> >            ifstream;
  169. typedef basic_ofstream<char, char_traits<char> >            ofstream;
  170. typedef basic_fstream<char, char_traits<char> >             fstream;
  171. typedef basic_iostream<char, char_traits<char> >            iostream;
  172. typedef basic_stringstream<char, char_traits<char>, allocator<char> >        stringstream;
  173. #ifndef _RWSTD_NO_WIDE_CHAR
  174. typedef basic_ios<wchar_t, char_traits<wchar_t> >           wios;
  175. typedef basic_streambuf<wchar_t, char_traits<wchar_t> >     wstreambuf;
  176. typedef basic_istream<wchar_t, char_traits<wchar_t> >       wistream;
  177. typedef basic_ostream<wchar_t, char_traits<wchar_t> >       wostream;
  178. typedef basic_stringbuf<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >     wstringbuf;
  179. typedef basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wistringstream;
  180. typedef basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wostringstream;
  181. typedef basic_filebuf<wchar_t, char_traits<wchar_t> >       wfilebuf;
  182. typedef basic_ifstream<wchar_t, char_traits<wchar_t> >      wifstream;
  183. typedef basic_ofstream<wchar_t, char_traits<wchar_t> >      wofstream;
  184. typedef basic_fstream<wchar_t,char_traits<wchar_t> >        wfstream;
  185. typedef basic_iostream<wchar_t, char_traits<wchar_t> >      wiostream;
  186. typedef basic_stringstream<wchar_t,char_traits<wchar_t>, allocator<wchar_t> >   wstringstream;
  187. #endif
  188. #endif
  189.  
  190. #ifndef _RWSTD_NO_NAMESPACE
  191. }
  192. #endif
  193.  
  194.  
  195. #pragma option pop
  196. #endif /* __STD_IOSFWD__ */
  197.